﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Coolite.Ext.Web;

public partial class Safty_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Cookies.ChkCook(Cookies.getCookies("cUsername") + "$" + Cookies.getCookies("cSecurityNum"), Cookies.getCookies("cMD5")))
        {
            Response.Redirect("~/Default.aspx");
        }
        //if (Cookies.getCookies("cDepID") != "6")
        //{
        //    Ext.MessageBox.Show(new MessageBox.Config
        //    {
        //        Buttons = MessageBox.Button.OK,
        //        Icon = MessageBox.Icon.ERROR,
        //        Title = "错误",
        //        Message = "对不起，您没有权限进行此项操作！"
        //    });

        //}
    }
}
